﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="admin.ascx.cs" Inherits="Categories_Admin" %>
<%@ Register Assembly="Omofor" Namespace="Jungle.Code.CategoryManager.WebControls" TagPrefix="OWC" %>


<asp:MultiView ID="GlobalMenu" runat="server">

<asp:View ID="v1" runat="server">
                <strong>
                    <br /><asp:LinkButton ID="btn_AddMenuItem" runat="server" Text="Добавить" PostBackUrl="~/Admin/Modules.aspx?mod=Categories&cmd=add" CssClass="category_funcs_text" ></asp:LinkButton>
                    <br /><asp:LinkButton ID="btn_ViewCategoriesList" runat="server" Text="Отобразить список категорий каталога" PostBackUrl="~/Admin/Modules.aspx?mod=Categories&cmd=view" CssClass="category_funcs_text" ></asp:LinkButton>
                    <br /><asp:LinkButton ID="btn_ChangeOrder" runat="server" Text="Изменить порядок категорий" PostBackUrl="~/Admin/Modules.aspx?mod=Categories&cmd=move" CssClass="category_funcs_text" ></asp:LinkButton>
                </strong>
            </asp:View>
<asp:View ID="v2" runat="server">                
                 <OWC:CategoriesList ID="ListOfCategories" runat="server" /> 
            </asp:View>
<asp:View ID="v3" runat="server">
                <table width="100%" height="100%" cellpadding = "0" cellspacing = "0">
                    <tr>
                        <td width="150px" height="25px"><strong>Название категории:</strong></td>
                        <td><asp:TextBox ID="txt_NewMenuItemText" runat="server" /></td>
                    </tr>
                    <tr>
                        <td width="150px"><strong><asp:Label ID="lbl_ParentMenu" runat="server" Text="Вложена в категорию:" /></strong></td>
                        <td><asp:DropDownList ID="ddl_MenuTreeItems" runat="server"></asp:DropDownList></td>
                    </tr>
                    <tr>
                            <td width="150px"><strong>Видна в меню:</strong></td>
                            <td><asp:DropDownList ID="ddl_CategoryVisible" runat="server">
                                <asp:ListItem>Да</asp:ListItem>
                                <asp:ListItem>Нет</asp:ListItem>
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td width="150px" height="25px">                                
                        <asp:Button ID="btn_AddNewMenuItem" runat="server" Text="Добавить категорию" OnClick="AddMenuItem" Visible ="false"  /> 
                        <asp:Button ID="btn_SaveChangesMenuItem" runat="server" Text="Сохранить" OnClick="UpdateMenuItem" Visible ="false" />                        
                        </td>                        
                        <td><asp:Label ID="lbl_ResultAddCat" runat="server" Text=""></asp:Label></td>
                    </tr>
                </table>
            </asp:View>
<asp:View ID="v4" runat="server">            
            <OWC:JMenuListAdmin ID="list_Menus" runat="server" />
</asp:View>
</asp:MultiView>




